/* eslint-disable */
import request from '@/utils/request'

// 门店列表
export function outlet(params) {
  return request({
    url: '/store/list',
    method: 'get',
    params
  })
}
// 门店详情
export function getDetailsOutlet(params) {
  return request({
    url: '/store/detail',
    method: 'get',
    params
  })
}
// 添加编辑门店
export function addOutlet(data) {
  return request({
    url: '/store/add',
    method: 'post',
    data
  })
}
// 交易记录
export function getjiaoyiList(params) {
  return request({
    url: '/store/businessTrade',
    method: 'get',
    params
  })
}
// 导购列表
export function getdaogouiList(params) {
  return request({
    url: '/store/shopperList/' + params.store_id,
    method: 'get',
    params
  })
}
// 会员列表
export function getUserMemberList(params) {
  return request({
    url: `/store/memberList/${params.store_id}`,
    method: 'get',
    params
  })
}

// 分销商
export function getfenxiaoList(params) {
  return request({
    url: '/store/resellerList/' + params.store_id,
    method: 'get',
    params
  })
}

// 佣金变动记录
export function getRewardList(params) {
  return request({
    url: '/store/rewardList/' + params.store_id,
    method: 'get',
    params
  })
}

// 余额变动记录
export function getBalanceList(params) {
  return request({
    url: '/store/balanceList/' + params.store_id,
    method: 'get',
    params
  })
}

// 门店列表--修改排序
export function setOutletmodStatus(params) {
  return request({
    url: '/store/statusSet/' + params.id,
    method: 'PUT',
    params
  })
}

// 门店列表--余额调整
export function setBalance(params) {
  return request({
    url: '/store/balanceUpdate/' + params.id,
    method: 'PUT',
    params
  })
}

// 门店列表--修改门店状态
export function setSorttatus(params) {
  return request({
    url: '/store/sortSet/' + params.id,
    method: 'PUT',
    params
  })
}
//获取门店设置
export function getStoreSetting(params) {
  return request({
    url: '/store/setting',
    method: 'get',
    params
  })
}
//设置门店设置
export function setStoreSetting(data) {
  return request({
    url: '/store/setting',
    method: 'post',
    data
  })
}
// 入驻审核列表
export function checkStoreList(params) {
  return request({
    url: '/store/apply/list',
    method: 'get',
    params
  })
}
// 入驻审核
export function checkStore(params) {
  return request({
    url: `/store/${params.id}/audit`,
    method: 'put',
    params
  })
}
export function getCheckStore(params) {
  return request({
    url: `/store/${params.id}/audit`,
    method: 'get',
    params
  })
}
